<template>
  <div class="navbar">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
      placeholder
    />
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String
    }
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>
<style lang="scss" scoped>
</style>
